home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib6 / v_08_06 / 8n06073a < prev    next >
Encoding:
Text File  |  1995-11-01  |  454 b   |  16 lines

  1. *****Listing 2*****
  2.  
  3.    static struct s_record print_record;  
  4.                                /* Declare a static record */  
  5.  
  6.    #define NUMBER_FIELDS 9    /* Number of fields in record */
  7.  
  8.    char *record_field_address[NUMBER_FIELDS] = 
  9.        {
  10.        print_record.firstname,
  11.        print_record.lastname,
  12.         ...
  13.        /* Remainder of the fields in the same format */
  14.        };                      /* Addresses of each field */
  15.  
  16.